const { parse } = require("url")


let request = {
  get url() {
    return this.req.url
  },
  get path() {
    return parse(this.req.url).pathname
  },
  get query() {
    return parse(this.req.url).query
  }
}

module.exports = request